<?php $this->load->view('components/header'); ?>
<div>&nbsp;</div>
<div class="popupContainer" style="position:absolute;top:30%;left:35%;width: 400px;">
	<h3>Login</h3>
	<?php if(isset($error)) { ?><span class="alert"><?php echo $error; ?></span><?php } ?>
	<form id="frmlogin" method="post" action="<?php echo "/auth/doLogin" ?>">
		<h6>Username:&nbsp;<?php echo form_error('userName'); ?></h6>
		<div><input type="text" id="userName" name="userName" value="<?php echo set_value('userName') ?>"></div>
		<h6>Password:&nbsp;<?php echo form_error('password'); ?></h6>
		<div><input type="password" id="password" name="password"></div>
		<div style="margin-top:10px;"><input class="button" type="submit" value="Login"></div>
	</form>
</div>
<div>&nbsp;</div>
<?php $this->load->view('components/footer'); ?>
